package com.analysis.mapper;

import com.analysis.entity.Company;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompanyMapper {

    int insert(Company company);

    int deleteById(@Param("id") Long id);

    int update(Company company);

    Company selectById(@Param("id") Long id);

    List<Company> selectAll();

    Company selectByName(@Param("name") String name);
}


